package crazy.trap;

public class AutoPromote
{
	public static void main(String[] args)
	{
		short sValue = 5;
		//sValue = sValue - 2;//sValue is promoted to int.
		sValue -=2;//包含隐式类型转换  sValue = (short)(sValue-2);
		byte b = 40;
		char c = 'a';
		int i = 23;
		double d = .314;
		double result = b+c+i*d;//No problem
		
		int val = 3;
		int intResult = 23/ val;//Good
		
		System.out.println("Hello"+'a'+7);//
		System.out.println('a'+7+"Hello");
	}
}
